package com.ruoyi.dev.domain;

import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据集对象 dev_dataset
 * 
 * @author yepanpan
 * @date 2025-01-22
 */
@Data
public class DevDataset extends BaseEntity
{

    public static final String TYPE_COUNT = "count";
    public static final String TYPE_SUM = "sum";
    public static final String TYPE_LIST = "list";
    public static final String TYPE_MAP = "map";

    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 归属主题 */
    @Excel(name = "归属主题")
    private String subjectName;
    @NotNull
    private Long subjectId;

    /** 类别 */
    @Excel(name = "类别", dictType="dev_dataset_type", comboReadDict=true)
    @NotNull
    private String type;

    /** 数据集代码 */
    @Excel(name = "数据集代码")
    @NotNull
    private String code;

    /** 数据集名称 */
    @Excel(name = "数据集名称")
    @NotNull
    private String name;

    /** 查询表达式 */
    @Excel(name = "查询表达式")
    @NotNull
    private String sqls;

    /** 状态 */
    @Excel(name = "状态", dictType="ext_status", comboReadDict=true)
    private String status;

    /** 搜索 */
    @Excel(name = "搜索", dictType="chart_search_type", comboReadDict=true)
    private String searchExp;

    /** 搜索标题 */
    @Excel(name = "搜索标题")
    private String searchTitle;

    /** 搜索字段 */
    @Excel(name = "搜索字段")
    private String searchField;

    /** 搜索数据源 */
    @Excel(name = "搜索数据源")
    private String searchDs;
}
